package cn.dust.design.principle.openclose;

/**
 * @Author: dust
 * @Date: 2019/11/24 18:22
 */
public class JavaCource implements ICourse{

    private Integer id;
    private String name;
    private double price;

    public JavaCource(Integer id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    public JavaCource() {
    }

    @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }
}
